<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2022/3/13
  Time: 23:40
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>评论管理</title>
</head>
<body>
<jsp:include page="header.jsp"/>
<section class="rt_wrap content mCustomScrollbar">
    <div class="rt_content">
        <div class="page_title">
            <h2 class="fl">订单列表示例</h2>
            <a class="fr top_rt_btn add_icon">添加商品</a>
        </div>
        <table class="table">
            <tr>
                <th>id</th>
                <th>用户昵称</th>
                <th>评论内容</th>
                <th>评论时间</th>
                <th>操作</th>
            </tr>
            <c:forEach var="list" items="${pageInfo.list}">
                <tr>
                    <td class="center">${list.commentId}</td>
                    <td class="center">${list.user.nickname}</td>
                    <td class="center">${list.discuss}</td>
                    <td class="center">${list.createTime}</td>
                    <td class="center">
                        <a href="${pageContext.request.contextPath}/bookStore/deleteComment?id=${list.commentId}" title="删除" class="link_icon">&#100;</a>
                    </td>
                </tr>
            </c:forEach>
        </table>
        <aside class="paging">
            <a href="${requestScope['javax.servlet.forward.request_uri']}?name=<%=request.getAttribute("key")%>&pn=${pageInfo.pageNum-1}" id="btn02">上一页</a>
            <c:forEach begin="1" end="${pageInfo.pages}" var="i">
                <a href="${requestScope['javax.servlet.forward.request_uri']}?name=<%=request.getAttribute("key")%>&pn=${i}">${i}</a>
            </c:forEach>
            <a href="${requestScope['javax.servlet.forward.request_uri']}?name=<%=request.getAttribute("key")%>&pn=${pageInfo.pageNum+1}" id="btn01">下一页</a>
        </aside>
    </div>
</section>

</body>
</html>
